//
//  GloableFont.h
//  Cycling
//
//  Created by cjg.mini on 2023/3/2.
//

#ifndef GloableFont_h
#define GloableFont_h

//*********************************//
//*           全局字体宏定义            *//
//*********************************//
#define Font(x)                 [UIFont systemFontOfSize:x]
#define FONT(name,x)            ([UIFont fontWithName:name size:x]?:Font(x))
#define PingFangFont(x)         FONT(@"PingFangSC-Regular",x)
#define PingFangLightFont(x)    FONT(@"PingFangSC-Light",x)
#define PingFangMediumFont(x)   FONT(@"PingFangSC-Medium",x)
#define PingFangThinFont(x)     FONT(@"PingFangSC-Thin",x)
#define PingFangSemiboldFont(x) FONT(@"PingFangSC-Semibold",x)


//一级标题
#define FONT_PRIMARY_TITLE         PingFangMediumFont(22)
//二级标题
#define FONT_SECONDARY_TITLE       PingFangMediumFont(20)
//28粗体
#define FONT_MEDIUM_28         PingFangMediumFont(28)

//正文
#define FONT_BODY_16                  PingFangFont(16)
#define FONT_BODY_15                  PingFangFont(16)
#define FONT_BODY_14                  PingFangFont(14)



#endif /* GloableFont_h */
